<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>租付通-房源管理</title>

    {include file="common/header-sub" /}
    <link rel="stylesheet" href="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>css/zft-house.all.css?<?=st?>">
</head>

<body>
    <div class="g-content" id="domContent">

        <div class="m-head_tab" id="headTab">

            <span class="m-head_tab_title  fy" id="tabFy">房源管理</span>
            <?php if (isset($dtype)) { if (in_array($dtype, [3, 4])) { ?>
            <span class="m-head_tab_title noactive ly" id="tabLy">楼宇管理</span>
            <?php }}?>
            <div id="addFyDiv" class="z-fr"> 
            
            </div>
            
        </div>
        <div id="switchLy">
            <!-- 楼宇 -->

            <div class="m-box">
                <div class="m-sch_location i-b">
                    <span class="u-pro_city">区域:</span>
                    <select name="" id="schProLy" class="m-form_control u-select m-w-15 prov">
                    <option value="0">请选择</option>
                </select>

                    <select name="" id="schCityLy" class="m-form_control u-select m-w-15 city">
                    <option value="0">请选择</option>
                </select>

                    <select name="" id="schAreaLy" class="m-form_control u-select m-w-15 area">
                    <option value="0">请选择</option>
                </select>

                </div>

                <div class="m-sch_ly ">
                    <span class="u-pro_city">商圈:</span>
                    <select id="tradeAreaLy" class="m-form_control u-select ">
                        <option value="0">请选择</option>
                        </select>
                    <span class="u-pro_city">楼宇状态:</span>
                    <select id="isdelLy" class="m-form_control u-select ">
                        <option value="-1">全部</option>
                        <option value="0">正常</option>
                        <option value="1">已失效</option>
                        </select>
                    <span class="m-l-30">楼宇名称:</span>
                    <input type="text" class=" m-form_control p16" name="" placeholder="支持模糊查询" id="schLyInp">
                    <button id="schLyBtn" class="m-btn m-btn_primary">查询</button>
                </div>

            </div>
            <div id="cntBox"></div>
            <div class="h40" data-type="ly">
                <div class="paginationWrapLy"></div>
            </div>
            <table class="g-table">
                <thead id="lyThead">
                    <th>编号</th>
                    <th>区域</th>
                    <th>楼宇名称</th>
                    <!--<th>楼宇地址</th>-->
                    <th>商圈</th>
                    <th>楼栋</th>
                    <th>合作模式</th>
                    <th>总房源数</th>
                    <th>该栋面积</th>
                    <th>已租数量</th>
                    <th>已租面积</th>
                    <th>未租面积</th>
                    <th>租售均价</th>
                    <th>出租率</th>
                    <th>楼宇状态</th>
                    <?php if (isset($dtype)) { if (in_array($dtype, [3, 4])) { ?>
                    <th class="corp">操作</th>
                    <?php }} ?>
                </thead>
            </table>
            <div class="u-div_overflow_x">
                <div class="u-div_overflow">
                    <table class="g-table">
                        <tbody id="tbodyLy">
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="h40" data-type="ly">
                <div class="paginationWrapLy"></div>
            </div>
        </div>
        <!-- 新增楼宇end -->

        <!-- 房源 -->

        <div id="switchFy">
            <div class="m-box">
                <div class="m-sch_location i-b">
                    <span class="u-pro_city">区域:</span>
                    <select name="province" id="schPro" class="m-form_control u-select m-w-15 prov">
                    <option value="0">请选择</option>
                </select>

                    <select name="city" id="schCity" class="m-form_control u-select m-w-15 city">
                    <option value="0">请选择</option>
                </select>

                    <select name="country" id="schArea" class="m-form_control u-select m-w-15 area">
                    <option value="0">请选择</option>
                </select>
                    <span class="u-span_fy">房号:</span>
                    <input type="text" id="room" class="m-form_control p15">
                </div>

                <div class="m-sch_ly">
                    <span class="u-pro_city">商圈:</span>
                    <select id="tradeAreaFy" class="m-form_control u-select ">
                        <option value="0">请选择</option>
                        </select>
                    <span class="u-pro_city">房源状态:</span>
                    <select id="isdelFy" class="m-form_control u-select">
                        <option value="-1">全部</option>
                        <option value="0">正常</option>
                        <option value="1">已失效</option>
                        </select>
                    <span class="u-pro_city">出租状态:</span>
                    <select id="statusFy" class="m-form_control u-select ">
                        <option value="0">所有</option>
                        <option value="1">已出租</option>
                        <option value="2">未出租</option>
                        </select>
                    <span class="m-l-30">楼宇名称:</span>
                    <input type="text" class=" m-form_control p16" placeholder="支持模糊查询" id="schFyInp">
                    <button id="schFy" class="m-btn m-btn_primary">查询</button>
                </div>
            </div>


            <div class="h40 " data-type="fy">
                <div class="paginationWrap "></div>
            </div>
            <div id="rateDiv" class="m-box_rate">

            </div>
            <table class="g-table">
                <thead>
                    <!--<th>楼宇编号</th>-->
                    <th>区域</th>
                    <th>楼宇名称</th>
                    <th>楼宇地址</th>
                    <th>楼栋</th>
                    <th>房号</th>
                    <th>面积</th>
                    <th>商圈</th>
                    <th>出租状态</th>
                    <th>房源状态</th>
                    <?php if (isset($_SESSION['dtype'])) { if (in_array($_SESSION['dtype'], [3, 4])) { ?>
                    <th class="corp">操作</th>
                    <?php }} ?>
                </thead>
            </table>
            <div class="u-div_overflow_x">
                <div class="u-div_overflow">
                    <table class="g-table">

                        <tbody id="tbody">
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="h40" data-type="fy">
                <div id="paginationWrap" class="paginationWrap"></div>
            </div>




        </div>
    </div>

    <div id="modal"></div>

    {include file="common/footer-sub" /}

    <script src="<?=STATIC_URL?>assets/build/<?=LOCAL_DIR?>js/zft-house.all.js?<?=st?>"></script>
</body>

</html>